/* 简洁归档页面样式 */

/* 页面容器 */
.simple-archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* 页面标题栏 */
.archive-title-bar {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--hao-main-op-deep);
}

.archive-title-bar h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--hao-fontcolor);
    margin-bottom: 0.5rem;
}

.post-count {
    font-size: 1rem;
    color: var(--hao-secondtext);
}

.post-count em {
    font-style: normal;
    font-weight: bold;
    color: var(--hao-main);
    font-size: 1.2rem;
}

/* 主体布局 */
.archive-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* ========== 左侧导航 ========== */
.timeline-nav {
    width: 200px;
    flex-shrink: 0;
    background: var(--hao-card-bg);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-year {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--hao-fontcolor);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.nav-year:hover,
.nav-year.active {
    background: var(--hao-main);
    color: #fff;
}

.nav-months {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 1rem;
}

.nav-month {
    font-size: 0.9rem;
    color: var(--hao-secondtext);
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-month:hover {
    background: var(--hao-main-op-deep);
    color: var(--hao-main);
    padding-left: 1rem;
}

/* ========== 右侧时间线 ========== */
.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* 年份区域 */
.timeline-year {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.year-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--hao-main);
    margin-right: 1rem;
}

.year-dot {
    width: 16px;
    height: 16px;
    background: var(--hao-main);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--hao-card-bg), 0 0 0 6px var(--hao-main-op);
}

/* 月份区域 */
.timeline-month {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

/* 时间线竖线 */
.timeline-month::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--hao-main-op) 0%, transparent 100%);
}

.month-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.month-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--hao-fontcolor);
    margin-right: 1rem;
}

.month-dot {
    width: 10px;
    height: 10px;
    background: var(--hao-main);
    border-radius: 50%;
    position: absolute;
    left: -2.6rem;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px var(--hao-card-bg);
}

/* 文章列表 */
.timeline-posts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-post {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    transition: all 0.2s ease;
}

.timeline-post:hover {
    transform: translateX(5px);
}

.post-day {
    font-size: 0.85rem;
    color: var(--hao-secondtext);
    min-width: 50px;
    font-family: 'Courier New', monospace;
}

.post-dot-small {
    width: 6px;
    height: 6px;
    background: var(--hao-main-op);
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    left: -2.5rem;
    transition: all 0.3s ease;
}

.timeline-post:hover .post-dot-small {
    background: var(--hao-main);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px var(--hao-main-op-deep);
}

.post-link {
    flex: 1;
    font-size: 1rem;
    color: var(--hao-fontcolor);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-link:hover {
    color: var(--hao-main);
}

/* 分页 */
.timeline-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hao-main-op-deep);
}

/* ========== 响应式设计 ========== */
@media screen and (max-width: 992px) {
    .archive-container {
        flex-direction: column;
    }
    
    .timeline-nav {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .nav-months {
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .simple-archive-page {
        padding: 2rem 1rem;
    }
    
    .archive-title-bar h1 {
        font-size: 2rem;
    }
    
    .year-number {
        font-size: 1.5rem;
    }
    
    .month-number {
        font-size: 1.1rem;
    }
    
    .timeline-month {
        padding-left: 2.5rem;
    }
    
    .year-dot {
        left: -0.5rem;
    }
    
    .month-dot {
        left: -2.1rem;
    }
    
    .post-dot-small {
        left: -2rem;
    }
    
    .timeline-month::before {
        left: 6px;
    }
}

@media screen and (max-width: 480px) {
    .simple-archive-page {
        padding: 1.5rem 0.5rem;
    }
    
    .archive-title-bar h1 {
        font-size: 1.8rem;
    }
    
    .timeline-nav {
        padding: 1rem 0.8rem;
    }
    
    .nav-year {
        font-size: 1.1rem;
    }
    
    .nav-month {
        font-size: 0.85rem;
    }
    
    .timeline-post {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .post-day {
        min-width: 45px;
    }
    
    .post-link {
        white-space: normal;
        line-height: 1.5;
    }
}

/* 滚动条样式 */
.timeline-nav::-webkit-scrollbar {
    width: 6px;
}

.timeline-nav::-webkit-scrollbar-thumb {
    background: var(--hao-main-op);
    border-radius: 3px;
}

.timeline-nav::-webkit-scrollbar-thumb:hover {
    background: var(--hao-main);
}
